package com.secsbrain.deploy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 应用入口 Created by zhaoyi on 2018/6/6.
 */
@SpringBootApplication(scanBasePackages = { "com.secsbrain" }
	,exclude={RedisAutoConfiguration.class, RedisRepositoriesAutoConfiguration.class})
@MapperScan(basePackages = "com.secsbrain.*.dal.mapper")
@ServletComponentScan("com.secsbrain.deploy")
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableTransactionManagement(proxyTargetClass = true)
@EnableCaching(proxyTargetClass = true)
@EnableDiscoveryClient
@EnableFeignClients("com.secsbrain")
public class DeployApplication {
	
	public static void main(String[] args) {
		SpringApplication.run(DeployApplication.class, args);
	}
	
}
